import { Http } from '@/utils/http'

/**
 * 根据标签获取诗歌
 * @param data 
 * @returns 
 */
export function requestPoetryByPid (data: any)  {
    return Http.request({
        url: '/out/poetry/getPoetryByPid',
        method: 'GET',
        params: data
    })
}

/**
 * 收藏诗歌
 * @param data 
 * @returns 
 */
export function requestCollectPoetry (data: any)  {
    return Http.request({
        url: '/poetry/collectPoetry',
        method: 'POST',
        data: data
    })
}

/**
 * 查询收藏信息
 * @param data 
 * @returns 
 */
export function queryCollectPoetryInfo (data: any)  {
    return Http.request({
        url: '/poetry/queryCollectPoetryInfo',
        method: 'GET',
        params: data
    })
}

/**
 * 查询收藏信息
 * @param data 
 * @returns 
 */
export function requestPoemsListByUid (data: any)  {
    return Http.request({
        url: '/poemsList/getPoemsListByUid',
        method: 'GET',
        params: data
    })
}

/**
 * 将诗词加入诗单
 * @returns 
 */
export function requestAddPoetryToPoemsList (data: any)  {
    return Http.request({
        url: '/poemsList/addPoetryToPoemsList',
        method: 'post',
        data: data
    })
}
